package com.order.mapper;

import com.order.dao.Desk;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeskMapper {
//    查询列表
     List<Desk> getDesksMapper(Desk desk);
//   增加列表
      int addDeskMapper(Desk desk);
//    逻辑删除，实质是 更新
     int deleteDeskMapper(int id);
//    改变状态，预定或者退桌
     int changeStatusMapper(Desk desk);

    //    判断是否成功
     int judgment(String name);

     Desk selectDesk(int id);
}
